import request from "@/utils/request"

const perfix = "/ask"





// 获取请假列表
export const getAskList = (data) => {
  return request({
    url: `${perfix}/list`,
    method: 'post',
    data
  })
}

//修改请假
export const updateAsk = (data) => {
  return request({
    url: `${perfix}/update`,
    method: 'post',
    data
  })
}

//修改请假
export const delAsk = (id) => {
  return request({
    url: `${perfix}/del?id=${id}`,
    method: 'delete'

  })
}

// s申请
export const applyAsk = (data) => {
  return request({
    url: `${perfix}/apply`,
    method: 'post',
    data
  })
}

// 审批
export const examineAsk = (data) => {
  return request({
    url: `${perfix}/examine`,
    method: 'post',
    data
  })
}
